<%-- 
    Document   : notLogged
    Created on : 31-mar-2014, 17.36.42
    Author     : work
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">       
    </head>
    <body>
        <div id="button">
                <a href="#" class="showhide"><img src="images/login1.png" height="52px" width="145px"></a>
            </div>
            <div class="slidediv">
                <a href="http://localhost:8080/csm-catering-war/Controller?hidden=registrati" style="margin-left: 210px">Non hai ancora un account? Iscriviti ora</a>
                <form id='login' action='Controller' method='post' accept-charset='UTF-8' onsubmit='return checkEmptyTextBox();'>
                <table border="0">
                    <tr><td>
                        <fieldset>
                        <legend style="padding: 25px 3px 25px 3px">Accedi</legend>
                        <input type='hidden' name='submitted' id='submitted' value='1'/>
                        <label for='username'>Username</label>
                        <input type='text' name='username' id='username' maxlength="50" />
                        <br>
                        <label for='password'>Password</label>
                        <input type='password' name='password' id='password' maxlength="50" />
                        <br><br>
                        <input type='hidden' name='hidden' value='login' /> 
                        <br>
                        <input type='image' name='Submit' src="images/submit.png" height="40px" width="150px" value='Submit'/>
                        <%if(request.getSession().getAttribute("logged") == "false"){%>
                        <script type="text/javascript">
                            alert('Username e/o Password errate');
                        </script>
                        <%}%>
                        </fieldset>
                    </td><td>
                        <fieldset>
                        <br>    
                        <legend style="padding: 25px 3px 25px 3px">Social Log in</legend>
                        <%--log in with facebook--%>
                        <fb:login-button size="large" scope="email" onlogin="require('./log').info('onlogin callback')">facebook</fb:login-button>
                        <br><br>
                        <%--log in with google--%>
                        <span id="googleButton" class="g-signin">
                            <span class="icon"></span>
                            <span class="buttonText">Google</span>
                        </span>
                        <br><br>
                        <%--log in with twitter--%>
                        <img src="images/twitter.png">                      
                        </fieldset>
                    </td></tr>
                </table>
                </form>
            </div>
    </body>
</html>
